<template xmlns:el-col="http://www.w3.org/1999/html">
    <el-form ref="threeModelForm" :rules="threeModelFormRules" :model="threeModelForm" label-width="200px">
        <el-form-item label="Brunstrom评估" prop="assBrunstrom" >
            <el-radio-group v-model="threeModelForm.assBrunstrom" style="width: 40%">
                <el-radio :label="'00'" style="margin-top: 30px">弛缓期：无任何运动</el-radio>
                <el-radio :label="'01'" style="margin-top: 20px">痉挛阶段：仅有极少的随意运动</el-radio>
                <el-radio :label="'02'" style="margin-top: 20px">共同运动阶段：在坐和站位上，有髋、膝、踝的协同性屈曲</el-radio>
                <el-radio :label="'03'" style="margin-top: 20px">部分分离运动阶段：在坐位上，可屈膝90以上，可使足后滑到椅子下方。在足跟不离地的情况下能背屈踝</el-radio>
                <el-radio :label="'04'" style="margin-top: 20px">分离运动阶段：健腿站，患腿可先屈膝后伸髋；在伸直膝的情况下，可背屈踝，可将踵放在向前迈一小步的位置上</el-radio>
                <el-radio :label="'05'" style="margin-top: 20px">正常阶段：在站立位可使髋外展到超出抬起该侧骨盆所能达到的范围；在坐位上，在伸直膝的情况下可内外旋下肢，合并足的内外翻</el-radio>
            </el-radio-group>
        </el-form-item>
        <el-button  style="margin-left: 240px;margin-top: 10px" type="primary" v-on:click="save">保 存</el-button>
    </el-form>
</template>

<script>
    export default {
        name: 'patient',
        data() {
            return {
                threeModelForm:{
                },
                threeModelFormRules:{
                    assBrunstrom: [
                        { required: true, message: '请选择Brunstrom评估', trigger: 'blur' },
                    ],
                }
            }
        },
        props:['name'],
        methods: {
            save:function () {
                this.$refs['threeModelForm'].validate((valid) => {
                    if (valid) {
                        this.threeModelForm.name = this.name;
                        console.log("this.threeModelForm--",this.threeModelForm);
                        this.$emit('assessformData', this.threeModelForm);
                        this.$message.success("保存成功");
                    }
                });
            }
        },
        watch:{     //监听value的变化，进行相应的操作即可
            name: function(a,b){     //a是value的新值，b是旧值
                this.name=a;
            }
        }
    };
</script>
<style scoped>
</style>
